

import request from '@/utils/request'

export default {
    //获取活期基金分页列表
    getCurrentShowListPage(page, name) {
        return request({
            url: "/currentFundInfo/selectAll?page="+page+"&name="+name,
            method: 'get'
        })
    },
    //移除活期基金到回收站或者删除
    stopOrOpen(code, status) {
        return request({
            url: `/currentFundInfo/delete`,
            method: 'post',
            data: {
                codes: [code],
                status: status
            }
        })
    },
    //批量删除活期基金
    deleteBatchesById(code) {
        return request({
            url: `/currentFundInfo/delete`,
            method: 'post',
            data: {
                codes: code,
                status: 3
            }

        })
    },
      //获得所有活期基金情况
      getCurrentAll(page,name) {
        return request({
            url: `/currentFundAll/selectAll?page=`+page+'&name='+name,
            method: 'get'
        })
    },
    //获得所有活期基金情况
    insertNewFund(codee) {
        return request({
            url: `/currentFundAll/insertNewFund`,
            method: 'post',
            data:{
                code:codee
            }
        })
    }


}